package stravel

class Location {
	
	String name
	static belongsTo = [parent:Location]
	
	static hasMany = [childs:Location]

    static constraints = {
		name(nullable:false, blank:false)
		parent(nullable:true)
    }
	
	static mapping = {
		sort "name"
	}
}
